package com.wisezone.demo0217;

public class Person {
    private   String name;
    private  int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public Person(String name) {
        this.name = name;
        this.age = 20;
    }
    public Person() {
    }
    private Person(int age){
        this.name="李四";
        this.age=age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }


    public  void  show(){
        String str="SHOW:[mame="+name+",age="+age+"]";
        System.out.println(str);
    }
    public  String   display(String nation){
        System.out.println("My address is:"+nation);
        return "display";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
